<?php
$user="junemann_nl";
$password="";
$database="junemann_nl";

$con = mysql_connect("localhost",$user,$password);
if(!$con)
{
	die("Unable to connect to server");
}

mysql_select_db($database, $con);

$id = $_GET["id"];

echo "<?xml version='1.0' encoding='UTF-8'?><items>";

mysql_query("DELETE FROM null_sk_loot WHERE ID = " .$id);

// Return ID. If ID is returned, the delete was not succesful.
$result = mysql_query("SELECT * FROM null_sk_loot WHERE ID = " .$id);
while($row = mysql_fetch_array($result))
{
   echo "<loot id='". $lootRow['ID'] ."' datetime='" . $lootRow['DateTime'] . "' itemid='" . $lootRow['ItemID'] . "' isoffspec='" . $lootRow['IsOffspec'] . "' />";
}  

echo "</items>";

mysql_close($con);
?>